{% extends "base.html"%}

{% block body %}
<script>
$(document).ready(function(){
 



// using jQuery
function getCookie(name) {
    var cookieValue = null;
    if (document.cookie && document.cookie != '') {
        var cookies = document.cookie.split(';');
        for (var i = 0; i < cookies.length; i++) {
            var cookie = jQuery.trim(cookies[i]);
            // Does this cookie string begin with the name we want?
            if (cookie.substring(0, name.length + 1) == (name + '=')) {
                cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                break;
            }
        }
    }
    return cookieValue;
}
</script>
<!-- Primary Page Layout
================================================== -->

<!-- Delete everything in this .container and get started on your own site! -->


<table border=0 width=100% >
  
    <Tr><td valign="top" style="vertical-align:top;" width=180>
        
    <div class="container_left" id="project_list">
        <dl>
                <dt> 我的项目 </dt>
                {% for project in project_list %}
                <dd onclick="location.href='/jobs/{{project.id}}'">{{project}}</dd>
                {% endfor %}

            </dl>
        </div>
    <div class="container_left" >
            <dl>
                <dt> 个人操作 </dt>
                <dd onclick="location.href='/user/report/day'">日报整理</dd>
                <dd onclick="location.href='/user/report/week'">周报整理</dd>
                
                <dd onclick="location.href='/user_edit'" >用户信息修改</dd> 
                <dd onclick="location.href='/user_passwd'" >修改密码</dd> 
                <dd onclick="location.href='/logout'">退出登录</dd>                     
            </dl>
    </div>
    
</td><td valign="top">
    <div id="container_right" style="width:800px;">
        {% block right_box %}
        <div class="title"><h3 id="chield_name" class="h3title">用户信息修改</h3></div>
        <div class="formbox" id="content_box">
            <form action="" method="post">  
            <ul>
                <li>登录名: {{user.username}}</li>
                <li>姓氏: <input type="text" name="last_name" style="width:80px;" value="{{user.last_name}}" > 名字:  <input type="text" size=4 name="first_name" style="width:80px;" value="{{user.first_name}}"> </li>
                <li>邮箱地址: <input type="text" name="email" value="{{user.email}}"></li>
                <li><input type="submit" value="修改信息"> {{word}}</li>
            </ul>
            {% csrf_token %}
            
        </form>
        </div>
        {% endblock %}
    </div>
</td></tr>
</table>
{% endblock %}